home *** CD-ROM | disk | FTP | other *** search
- Check for sucessful Login to the Netware Network.
-
- Because Novel's LOGIN.COM does not use ERRORLEVEL, is not possible to know
- if the user logged succesfuly to the network.
- I wrote a small program, caled LOGCHECK, that tests an ENVIROMENT variable
- named LOG.
- If LOG=LOGIN_NAME, (for example, LOG=ACCOUNT), login was sucessful; if
- LOG= (blanks), it wasn't.
-
- Installation:
-
- 1.- To the System Login Script, add the folowing line:
-
- DOS SET LOG=LOGIN_NAME
-
- 2.- Put LOGCHECK inside a batch file, for example :
-
- echo off
- cls
- set log= <-- this "clears" environment variable LOG
- anet3 <-- loads netware shell
- f: <-- defaults to LOGIN directory
- :again
- login <-- asks for login name and password
- logcheck <-- checks environment space
- if errorlevel 1 goto again <-- loops back if LOG=
-
- Hope it can be useful for you.